package gui;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JSpinner;
import java.awt.FlowLayout;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import java.awt.Dimension;

public class AngebotsEditor extends JPanel {
	private JTextField angebotsTitel;
	private JTextField textField;
	private JTextArea taBeschreibung;

	/**
	 * Create the panel.
	 */
	public AngebotsEditor() {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JPanel panel = new JPanel();
		add(panel);
		panel.setLayout(new GridLayout(0, 2, 0, 0));
		
		JLabel lblNewLabel = new JLabel("\u00DCberschrift");
		panel.add(lblNewLabel);
		
		angebotsTitel = new JTextField();
		panel.add(angebotsTitel);
		angebotsTitel.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Angebotsende");
		panel.add(lblNewLabel_1);
		
		JSpinner spEnde = new JSpinner();
		panel.add(spEnde);
		
		JLabel lblNewLabel_2 = new JLabel("Ausrufpreis");
		panel.add(lblNewLabel_2);
		
		textField = new JTextField();
		panel.add(textField);
		textField.setColumns(10);
		
		taBeschreibung = new JTextArea();
		JScrollPane scrollPane = new JScrollPane(taBeschreibung);
		scrollPane.setPreferredSize(new Dimension(300, 200));
		add(scrollPane);
	}

}
